package br.com.sovi.gwt.client.entity.pesquisa;

import br.com.sovi.gwt.client.entity.Point;

public class OpcaoBuilder {

	private Opcao opcao;
	
	public OpcaoBuilder(String descricao, String color) {
		opcao = new Opcao(descricao, color);
	}

	public OpcaoBuilder addPoint(Point point) {
		opcao.getPoints().add(point);
		return this;
	}
	
	public OpcaoBuilder addPoint(double latitude, double longitude) {
		return this.addPoint(new Point(latitude, longitude));
	}
	
	
	public Opcao toOpcao() {
		return opcao;
	}

}
